extern _printf
SECTION .data
const1: dq 2.6
a: dd 0
b: dd 0
boo: dd 0
intFormat: db "%d", 10, 0
doubleFormat: db "%.2f", 10, 0
SECTION .text
global _WinMain@16
_teste:
push ebp
mov ebp, esp
push dword [ebp+12]
pop eax
mov esp, ebp
pop ebp
ret
mov esp, ebp
pop ebp
ret
_WinMain@16:
push ebp
mov ebp, esp
sub esp, 16
push dword 1
pop dword [boo]
push dword [a]
push dword [b]
call _teste
add esp, 12
push eax
pop dword [a]
push dword 2
pop dword [a]
fld qword [const1]
fstp qword [ebp-16]
push dword 3
push dword [a]
pop ebx
pop eax
cmp eax, ebx
jge WinMain@16_else_1_block
jmp WinMain@16_endif_1
WinMain@16_else_1_block:
WinMain@16_endif_1:
mov esp, ebp
pop ebp
mov eax, 0
ret
